/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.view.gui;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

/**
 *
 * @author Murilo
 */
public class PrincipalAdm extends javax.swing.JFrame {
    
    String seta_look = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
    
    public PrincipalAdm() throws ClassNotFoundException {
        initComponents();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        pack();
        setLocation((screenSize.width/2) - (getWidth()/2), (screenSize.height/2) - (getHeight()/2));
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        btnAlunos = new javax.swing.JButton();
        btnProfessores = new javax.swing.JButton();
        btnTurmas = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Sistema Acadêmico - Administrador");

        jLayeredPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        btnAlunos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/7741_64x64.png"))); // NOI18N
        btnAlunos.setText("Alunos");
        btnAlunos.setToolTipText("");
        btnAlunos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAlunosActionPerformed(evt);
            }
        });
        btnAlunos.setBounds(0, 0, 140, 80);
        jLayeredPane1.add(btnAlunos, javax.swing.JLayeredPane.DEFAULT_LAYER);

        btnProfessores.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/10680_64x64.png"))); // NOI18N
        btnProfessores.setText("Professores");
        btnProfessores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProfessoresActionPerformed(evt);
            }
        });
        btnProfessores.setBounds(137, 0, 160, 80);
        jLayeredPane1.add(btnProfessores, javax.swing.JLayeredPane.DEFAULT_LAYER);

        btnTurmas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/7824_64x64.png"))); // NOI18N
        btnTurmas.setText("Turmas");
        btnTurmas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTurmasActionPerformed(evt);
            }
        });
        btnTurmas.setBounds(290, 0, 150, 80);
        jLayeredPane1.add(btnTurmas, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/back_2.png"))); // NOI18N
        jButton4.setText("Voltar");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 443, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addGap(149, 149, 149)
                .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton4)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        this.dispose();            // TODO add your handling code here:
    }//GEN-LAST:event_jButton4ActionPerformed

    private void btnAlunosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAlunosActionPerformed
        AdmAlunos amdalunos = new AdmAlunos();
        amdalunos.setVisible(true);
    }//GEN-LAST:event_btnAlunosActionPerformed

    private void btnProfessoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProfessoresActionPerformed
        AdmProfessores AP = new AdmProfessores();
        AP.setVisible(true);
    }//GEN-LAST:event_btnProfessoresActionPerformed

    private void btnTurmasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTurmasActionPerformed
        AdmTurmas AT = new AdmTurmas();
        AT.setVisible(true);
    }//GEN-LAST:event_btnTurmasActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAlunos;
    private javax.swing.JButton btnProfessores;
    private javax.swing.JButton btnTurmas;
    private javax.swing.JButton jButton4;
    private javax.swing.JLayeredPane jLayeredPane1;
    // End of variables declaration//GEN-END:variables

}
